Skip to content

Added Optimization and OverSampling - #4

Open
draldric wants to merge 3 commits into
TomStanton:mainfrom
draldric:main
Open

Added Optimization and OverSampling#4
draldric wants to merge 3 commits into
TomStanton:mainfrom
draldric:main

Conversation

@draldric

Copy link
Copy Markdown

Changes

Added OverSampling to increase the effective resolution from 10 bit up to a maximum of 15 bits based on the use of int (default: 12 bit)

  • Practically the limit on the bit resolution is 13 bits which would take 50ms to complete the four oversampled analog reads.
  • Any higher bit resolution would result in times longer than the input latency that @TomStanton measured during his testing of the controller (111ms).
    • 11 bit - 5ms
    • 12 bit - 13ms
    • 13 bit - 54ms
    • 14 bit - 221ms
    • 15 bit - 914ms

draldric added 3 commits July 25, 2021 20:47
Added OverSampling Support to effectively increase the resolution of the ADC from 10bit to 12bit.

The total resolution can be changed via the variable bitResolution up to a practical limit of 15bits
Thank you @Jakeler for making the code more concise
Optimized Types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant